Methods and systems for managing virtual and real machines

ABSTRACT

Managing virtual and real machines through a provisioning system. The provisioning system allows a user to create and manage machines through a “self-service” approach. The provisioning system interacts with one or more agents that manage the lifecycle of a machine. The system may provide templates that enable a user to readily create a virtual machine. The system may also include interfaces for administrators to manage virtual and real machine resources.

RELATED APPLICATIONS

The patent application is a continuation of U.S. patent application Ser. No. 13/430,096 filed Mar. 26, 2012, which issued as U.S. Pat. No. 8,826,289 on Sep. 2, 2014, which is a continuation of U.S. patent application Ser. No. 11/903,374 filed Sep. 21, 2007, which issued as U.S. Pat. No. 8,171,486 on May 1, 2012, which claims priority under 35 U.S.C. §119 to U.S. Provisional Patent Application No. 60/919,965, entitled Method and System for Managing Virtual and Real Machines, filed Mar. 26, 2007, the complete disclosure of which each is hereby fully incorporated herein by reference.

FIELD OF THE INVENTION

This invention relates to systems and methods for managing virtual and real machines. More particularly, this invention relates to providing the infrastructure and processes for managing the lifecycle of virtual and real machines over multiple platforms, including virtual resources such as storage and virtual networks.

BACKGROUND OF THE INVENTION

Computer networks and other computer infrastructure provide the backbone for corporate and government institutions today. Computer assets represent significant investments of time and money for these institutions, in the procurement, operation, and maintenance of these assets. These assess require significant power resources to run and cool the machines. The assets also require continuous upgrading of software, including system patches and anti-virus programs. Maintenance demands require system personnel dedicated to keeping the assets up-to-date and operating.

Computer software developers require access to computer assets to test software under development. These development activities often require different computer configurations to ensure that the software is adequately tested. Often, to ensure that they have adequate platforms to test software, these developers maintain multiple workstations. Each workstation requires capital investment and significant maintenance costs and is often used a fraction of the time only.

This demand by software developers for different types of machines for short periods of time helped drive the development of virtualization. Virtualization allows for multiple platforms to reside on a single computer. That is, multiple virtual machines could reside on a single real machine. Although virtualization was supported on both individual work stations and servers, the emphasis of this development was on the work station, which was the more typical computer resource used by developers.

Even with tools that support virtualization on work stations, the work station approach still had deficiencies, particularly for large enterprises. First, a single work station was still a minimal environment. A work station would quickly run out of computing power and, as such, support a minimal number of virtual machines. A developer may still require multiple work stations to effectively test a software program. Also, large enterprises generally maintain strict controls over their computer networks. Individual end users generally did not have the proper permission to add machines on the network, even virtual machines. These restrictions were necessary to protect other computer assets on the network. Also, since the “hard drive” of a virtual machine is merely a file, these machines posed a security risk. An individual could walk off with a machine by copying the hard drive file from a work station to a portable storage unit, such as a memory stick or CD. So, even with the needed tools to create virtual machines on work stations, the end users could not use these machines.

One approach to overcome the problem of individuals within a large enterprise needing permission to connect virtual machines to the network and the ineffectiveness of work stations to run the tests would be to move the virtual machines into the data centers of the enterprises, that is, put the machines on the servers in the central data centers. A server could host many individual virtual machines. This approach was cost prohibitive at first, but the advent of inexpensive server-based virtualization software made the virtualization process cost-effective (ignoring the other costs associated with maintaining virtual machines). Although this approach would enable the system administrators to control access to the network, this approach would dramatically increase the work load of these administrators. They would need to create and destroy these machines. Creating the machines would require adding a suite of software to the machines, all of which require licenses. Once created, each machine would need to be maintained, including anti-virus updates and software patches—maintaining virtual machines in this respect is no different from maintaining real machines. Also, for enterprises where specific profit centers “own” the physical host in a data center, virtual machines could allow individuals from one profit center to use an asset paid for by another profit center.

Although software developers are one group of end users that can benefit from virtualization, enterprises as a whole may benefit as well. Through virtualization, these enterprises can maximize their computer assets and better manage their capital expenditures. For example, computer assets allocated to disaster recovery can host virtual machines during normal operations and then quickly be converted for disaster recovery use by destroying the virtual machines.

In view of the foregoing, there is a need to provide systems and methods that can allow end users to access virtual machines resident in a data center and provide administrators with entire control over the machines while minimizing the work required by the administrators to create and destroy the machine and minimizing the costs associated with the machine.

SUMMARY OF THE INVENTION

The present invention provides systems and methods that provides a self-service mechanism where end users can activate and use virtual machines housed in a data center and an administrative mechanism that gives system administrators control over the machines. One aspect of the present invention provides a system for managing virtual computer resources. The system includes a provisioning module operable to receive a request to act on a virtual resource and automatically generate instructions to implement the request and further operable to dynamically monitor the virtual resource; and a plurality of physical hosts each comprising one or more virtual resources and each associated with an agent, wherein the agent is logically connected to the provisioning module and operable to receive the instructions and to act on the virtual resource in response to the request and further operable to dynamically provide the status of the virtual resource.

Another aspect of the present invention provides a system for managing virtual computer resources. The system includes a provisioning module operable to receive a request to act on a virtual resource and automatically generate instructions to implement the request; a workflow engine, logically connected to the provisioning module and operable to instantiate a workflow in response to the request to control the lifecycle of the virtual resource; one or more templates comprising a configuration for a virtual resource, wherein the received request corresponds to a template and further comprising an allocation of physical resources associated with a plurality of physical hosts; and the plurality of physical hosts each comprising one or more virtual resources and each associated with an agent, wherein the agent is logically connected to the provisioning module and operable to receive the instructions and to act on the virtual resource in response to the request.

Yet another aspect of the present invention provides a method for controlling computer resources. The method includes the steps of: a) presenting a user interface to an end user comprising one or more controls for submitting requests for actions on a computer resource; b) receiving a request for an action on a computer resource; c) automatically instructing an agent associated with one of a plurality of physical hosts in response to receiving the request, wherein the instruction comprises an action associated with the request; and d) receiving status information on the computer resource.

Yet another aspect of the present invention provides a system for managing computer resources. The system includes a provisioning module operable to receive a request to act on a computer resource and automatically generate instructions to implement the request and further operable to dynamically monitor the computer resource; and a plurality of physical hosts each comprising one or more computer resources and each associated with an agent, wherein the agent is logically connected to the provisioning module and operable to receive the instructions and to act on the computer resource in response to the request and further operable to dynamically provide the status of the computer resource.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an operating environment in accordance with an exemplary embodiment of the present invention.

FIG. 2 depicts an arrangement of virtual machines within physical host structures in accordance with an exemplary embodiment of the present invention.

FIG. 3 depicts an operating environment in accordance with an exemplary embodiment of the present invention including modules that support system functionality.

FIG. 4 depicts an operating environment in accordance with an exemplary embodiment of the present invention including modules that support system functionality.

FIG. 5 depicts a user hierarchy in accordance with an exemplary embodiment of the present invention.

FIG. 6 presents roles for logical groups in accordance with an exemplary embodiment of the present invention.

FIG. 7 depicts reservations for virtual machines on physical hosts in accordance with an exemplary embodiment of the present invention.

FIG. 8 depicts the states of a virtual machine in accordance with an exemplary embodiment of the present invention.

FIG. 9 depicts the lifecycle of a virtual machine in accordance with an exemplary embodiment of the present invention.

FIG. 10 depicts the lifecycle of a virtual machine in accordance with an exemplary embodiment of the present invention.

FIG. 11 depicts an example of a workflow in accordance with an exemplary embodiment of the present invention.

FIGS. 12a-m depict illustrative computer screens from a graphical user interface in accordance with an exemplary embodiment of the present invention.

DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

Exemplary embodiments of the present invention provide systems and methods that provide a self-service mechanism where end users can activate and use virtual machines housed in a data center and an administrative mechanism that gives system administrators control over the machines. Exemplary systems employ a web portal to allow users to access the system to create and use virtual machines and manage these machines. The lifecycle of these machines are managed through workflows, which allow for a simple process control environment. Further, the system includes a robust database structure. The system also employs agents on physical hosts (or proxy servers associated with the physical hosts) to control the variety of virtual machines that may be created.

FIG. 1 depicts an operating environment 100 in accordance with an exemplary embodiment of the present invention. Referring to FIG. 1, the exemplary operating environment 100 consists of a typical layered system, including a presentation layer, a business layer, and a data layer. A set of client computers 110, 120, 130 access a web services server 140 representing a presentation layer. The client computers 110, 120, 130 run a web browser, which enables a user to access information stored on the web services server 140. The web services server 140 renders web pages to users according to the specific user. For example, end users of a virtual machine that are creating or modifying a virtual machine would see one type of web pages. These pages may be tailored to an end user, based on that end user's membership in a logical group. Administrators would see other web pages served by the web services server 140, such as pages that would allow the administrators to manage group and enterprise virtual or real computer assets.

A business layer would provide workflows, security, and data access, through one or more servers, such as server 150. Server 150 hosts the processes necessary to manage the lifecycle of virtual or real machines, or other virtual or real resources, such as storage resources or network resources. Storage resources may include hard drives on work stations, computers on networks dedicated for storage, or massive array network of computers for storage. Network resources includes physical network components and network connections. These processes allow for the provisioning, maintenance, and destruction of the machines. Also, a security module, resident on the server 150, controls what processes a specific user may access. This business layer is referred to hereinafter at a provisioning system or a virtual machine provisioning system, since the system manages resources and privileges for the virtual machines.

Virtual machines would live on physical hosts, such as physical hosts 172, 174, 176, 178. One physical host may be configured to operate a specific type of virtual machine or resource. So, physical host 172 may operate a MICROSOFT WINDOWS-base virtual machine while physical host 174 may operate a UNIX-based virtual machine. The virtual machine can be in the form of an individual workstation, a server, or a network of machines. Typically, a physical host would run a specific virtualization program, such as MICROSOFT'S VIRTUAL SERVER or VWWARE's virtualization program. A file server 180 includes images of the software that would be loaded onto the virtual machines. That is, the file server 180 would have images of different combinations of software that correspond to a specific type of virtual machine, such that when the virtual machine is created, the software is copied from the file server 180 into the physical host that is hosting that virtual machine.

A data layer provides a data store, such as a SQL server 160, that provides data needed by the business layer resident on server 150. For example, the data may include workflows that manage the states of a machine, configurations of virtual machines, and configurations of physical hosts.

The operating environment 100 provides an infrastructure that allows for the dynamic evaluation of all virtual and physical resources. The provisioning system can evaluate current use of resources, both real and virtual. This dynamic accounting of resource use allows for allocating costs of system use that closely tract actual use of resources. Also, the ability for end users to create and manage real and virtual resources, without relying on administrators to perform many of the functions, allows for just-in-time provisioning of physical and virtual resources, which minimizes the inefficient use of machines. For example, an enterprise would not need to set aside a large number of machines or storage space for a group in anticipation of that group ramping up its use of the computer resources. Instead, the group can access the resources as needed. In this way, the group need pay for the resources actually used only.

FIG. 2 depicts an arrangement of virtual machines within physical host structures in accordance with an exemplary embodiment of the present invention. Referring to FIGS. 1 and 2, a virtual machine provisioning system 210 interacts with one or more physical hosts, such as physical hosts 172, 174, 176, 178. Each physical host will include a system structure to support virtual machines. For example, physical host 172 may include physical host structure 220. Similarly, physical host 174 may include physical host structure 230. The virtual machine provisioning system 210 can interact with any number of physical host structures, as depicted in FIG. 2 by physical structure 240, resident on the Nth physical host. In other words, the virtual machine provisioning system 210 does not impose limits on the number of physical hosts that can be managed. One of ordinary skill in the art would understand that the virtual machine provisioning system 210 can manage physical hosts that are located in multiple physical locations.

Each physical host structure may supports multiple virtual machines. As discussed above in reference to FIG. 1, typically a single physical host structure, such as physical host structure 220 resident on physical host 172, would run one type of virtualization software, such as VMWARE. Also, all of the virtual machines resident on the physical host structure would be based on the same operating system for the virtual machine. For example, physical host structure 220 may operate VMWARE's virtualization program and virtual machines 221, 222, 223, 224, 225 may be UNIX-based machines. In contrast, physical host structure 230 may operate MICROSOFT'S VIRTUAL SERVER program and virtual machines 231, 232, 233, 234, 235 may be MICROSOFT WINDOWS-based machines. The number of virtual machines that may reside on a single physical host depends on the type of virtual machines established on the host, the size of the host, and the host resources allocated to virtual machines.

FIG. 3 depicts an operating environment 300 in accordance with an exemplary embodiment of the present invention including modules that support system functionality. Referring to FIGS. 1 and 3, a user 305, using a web browser application, accesses web pages 311, 312, 313 resident on a web farm 310, that is, one or more web servers that host the web pages. One of ordinary skill in the art would understand that the web farm may host a variety of web pages, including pages that are unrelated to managing virtual machines. One of ordinary skill in the art would also understand that other means, such as a more robust client program, could be used instead of a web browser or the interface between the user and the provisioning system may employ a command line structure. Illustrative web pages are described below, in connection with FIGS. 12a -n.

Information and options rendered on web pages 311, 312, 313 are sent to a web server, such as web server 140, by one or more provisioning server modules 320, 325, resident on one or more servers, such as server 150. These servers run workflows 322, 327 that, in conjunction with a security module (not depicted), dictate the options available to the user 305 through the web pages. The workflows 322, 327 of this exemplary embodiment are stored in a SQL server cluster 330. An instance of a workflow would be instantiated in response to a request, such as a request from the user 305 that the user 305 wants to create a virtual machine. A specific workflow would be instantiated to govern a specific task.

The workflows 322, 327 running on the provisioning server modules 320, 325 also control agents, such as agent 350, resident on physical hosts. Each physical host would have a single agent running on it. Alternatively, the agent may reside on a proxy server and interact with the physical host and virtual machines on that host remotely. These agents control virtual machines that reside on these physical hosts, such as virtual workstations 362, 364, 366 resident on physical host 342. In one embodiment, these workflows 322, 327 push instructions to agents resident on the hosts through a web server, such as web server 140. These instructions encompass each aspect of the virtual machine's lifecycle. A virtual machine's lifecycle is discussed in greater detail below, in connection with FIGS. 8 and 9. Alternatively, the agent would periodically poll, through the web server, the provisioning server module to receive instructions regarding the hosted virtual machines.

The single agent resident on a single host is designed to interact with the Application Programming Interfaces (APIs) specific to the virtualization software resident on the server. As such, the physical host has a single agent and operates a single virtualization software program. Through this interaction with the APIs, the agent manages all aspects of a virtual machine, its characteristics (e.g., CPU, memory, storage) or other virtual resource or network of resources resident on that physical host, based on the instructions it receives from the workflows 322, 327 operating provisional server modules 320, 325.

In one embodiment, the agent 350 would poll the provisioning server modules 320, 325 with two inquiries. One inquiry would be: what is the state of virtual machines on physical host 342? This inquiry allows the agent 350 to ensure that its physical host 342 mirrors the configuration that the provisioning server modules 320, 325 believes is in place. The agent 350 periodically synchronizes its physical host 342 with the configuration maintained by the provisioning server modules 320, 325. The second inquiry would be: what task do you have for me? This inquiry enables the agent 350 to be instructed to manage a virtual machine—create it, maintain it, expire it, and destroy it. By having the agent 350 poll the provisioning server modules 320, 325, the system can be assured that the agent 350 receives the instruction. This polling process avoids the need for a queuing mechanism at the agent under a system that pushes instructions to an agent. Although this polling aspect has this advantage over a push model, one of ordinary skill in the art would appreciate that a push model can be readily employed.

FIG. 4 depicts an alternative operating environment 400 in accordance with an exemplary embodiment of the present invention including modules that support system functionality. Referring to FIGS. 1 and 4, an administrator 402 and an end user 401 accesses the provisioning system 420 through a common web portal 410. Alternatively, the administrator 402 and end user 401 may access the system through different web servers.

In this exemplary embodiment, the provisioning system 420 includes an API web services module 421 and a web service 422. The API web services module 421 interacts with the web portal 410 and the agent 460. In this way, the operating environment 400 differs from the exemplary embodiment of operating system 300, which included a web farm of web servers that served as a conduit for information to user interfaces and to the agents resident on physical hosts.

A workflow engine 423 includes workflows, such as workflow 424, and interacts with the web service module 422. Through this interaction, the workflow engine 423 receives requests from the user 401 and the administrator 402 submitted through web-based forms and provides instructions that will be implemented by an agent resident on a physical host, such as agent 460. The workflow engine 423 would also access data access layer 427 through the web server module 422. The data access layer 427 then accesses a SQL database containing workflow states and a SQL database that includes virtual machine host data and metadata. One of ordinary skill in the art would appreciate that the data access layer 427 could access a single collective database or distributed databases.

A database 430 stores the “state” of current workflows. Since a single instance of a workflow exists during the lifetime of a virtual or real resource and typically a lifecycle includes gaps in time when the provisioning system 420 is not doing anything as to the resource, the database 430 stores the current state of that workflow—where the workflow is in its lifecycle. By storing the state in a database, the workflow instance does not have to be maintained in memory. Also, redundancies can be established to protect against the loss the state of a resource if a computer system fails. The database 430 would include an XML description of the workflow and the code of the workflow. Since the code for each instance of a workflow is stored in the database, each instance of a workflow, even if for the same resource, can exist in different versions. So, an instance of a workflow for a specific resource can be in the middle of its lifecycle and another instance of the same workflow can be instantiated, where this second instance is a later version with different operations. In this way, the provisioning system 420 can continually update the management tasks, without affecting previously provisioned resources.

A database 435 stores other data used by the provisioning system 420. These data include names of physical and virtual resources, templates, groups, reservations, allocations, and the status of each resource. Queries to the database 435 provides an instant snapshot of the use of all real and virtual resources. As such, an enterprise can determine a precise measure of resource use and can allocate costs as appropriate. The database 435 also includes an audit trail—every action taken by a user, administrator, and workflow is recorded and stored in the database 435.

The exemplary security module 426 is fine grained. The security module 426 controls what parameters an end user, such as end user 401, can control for a specific virtual machine and these parameters could vary by groups of users or individual users. For example, one type of user may not be allowed to turn off their virtual machines because regulatory requirements may mandate that the machines remain on to protect forensic data. The security module 426 affects what information and options are rendered on the web page shown to the user 401, thus controlling the options available to that user. The XML store 428 includes security roles and descriptions. It includes, in XML form, definitions of each role (see FIG. 6 below, for a discussion of roles), task, and operation that can be performed on the provisioning system 420. It maps to the active directory 425. The active directory 425 includes the security authorization identity (e.g., username and password) for each user, security groupings for users, and information on each active virtual and real computer resource.

An image store 440, which may reside on a server such as file server 180, includes the images for the types of virtual machines that can be created. An image is a copy of the software and associated data that forms a machine's hard drive. Through the use of the image store, specific configurations of software can be copies to the storage drives of the physical hosts that represent a virtual machine. For example, the physical host 452 operates VMWARE. The agent 460, which may reside on physical host 452, receives instructions from the provisioning system 420 to create a virtual machine. Alternatively, the agent 460 may reside on a proxy server and interact with the physical host 452 and virtual machines on that physical host 452 remotely. The instructions include details on the type of machine to be created, such as memory and storage characteristics. The agent 460 would interact with the image store 440 to copy the image of the software that defines the virtual machine onto a hard drive for the physical host 452. The image may be for virtual workstations, such as virtual workstation 482, 484, 486, or a virtual server (not shown).

The agent 460 also interacts through a virtual service API 470. The virtual service API 470 is the interface for the agent to communicate with the virtualization software running on the physical host 452. The virtual service API 470 would be unique to a type of virtualization software and the agent 460 would be designed to interact with that specific The virtual service API 470. Physical hosts 454, 456 may run different virtualization software from physical host 452 and, as such, would have different agents and virtual service APIs (not shown). In this way, a virtual machine host farm 450 may operate diverse virtualization software and host diverse virtual machines. Indeed, the virtual machine host farm 450 may be in physically diverse places, such that a set of physical hosts resides in one location and another set resides in a different location. These distributed hosts would be connected to the provisioning system 420 through a communications link, such as over the internet.

Typically, the user 401 can request the creation of a virtual machine, extend or end a lease of a virtual machine, and otherwise manage virtual machines that the user 401 has created. In an exemplary embodiment, the creation of virtual machines is facilitated by the use of templates. Templates are discussed in greater detail below, in connection with FIG. 6. The provisioning system 420 can interact with an agent, such as agent 460, to create and manage virtual resources other than virtual machines, such as virtual storage and virtual networks (multiple virtual machines networked together).

Although FIG. 4 is directed at managing virtual machines, the system for managing real computer resources, such as storage or network resources, is comparable. Users and administrators, such as user 401 or administrator 402, access the provisioning system 420 to manage a physical computer resource. The provisioning system 420 interacts with a physical machine that includes the physical resource. As with virtualization described above, the provisioning system 420 interfaces, through agents, with APIs that reside on the physical computers and that control the physical resources. For example, the user 401 may access the provisioning system 420 to create a logical unit number (LUN), a “slice” of storage on a massive array network of computers used for storage. The user 401 can create the LUN, map the LUN to a network, and manage the lifecycle of the LUN. As with virtual machines, this management is performed through a workflow specific to the task. The workflow would send instructions to an agent that is designed to interact with the specific API and translate the instructions from the user 401. Templates may be used that identify the types of physical computer resources that the user 401 can create and manage. As with virtual machines, the types of tasks that the user 401 can perform would be controlled by the security module 426.

FIG. 5 depicts a user hierarchy 500 in accordance with an exemplary embodiment of the present invention. Referring to FIG. 5, in this exemplary embodiment, three levels are depicted. An enterprise level 510 consists of one or more groups, such as group 520, group 530, and group 540. Each group may have access to different resources; that is, members of one group may be able to create different virtual machines with different configurations and lifetimes as compared to members of another group. These groups are logical groupings of resources that are reserved for use by group members. End users would be in one or more groups. For example, end user A 551, end user B 552 and end user F 553 comprise group 520 while end user G 554, end user H 555 and end user F 553 comprise group 540. In this example, end user F 553 would have access to the resources allocated to both group 520 and group 540. In contrast, end user A 551 and end user B 552 would have access to group 520 resources only; end user G 554 and end user H 555 would have access to group 540 resources only; and end user C 556 and end user E 557 would have access to group 530 resources only.

In the user hierarchy 500, one or more enterprise administrators would administer to the resources of the enterprise 510. Additionally, each group may have one or more administrators to administer the resources of the individual groups.

FIG. 6 presents roles for system members in accordance with an exemplary embodiment of the present invention. Referring to FIGS. 5 and 6, a role 610 is that of a support person. The support person is designated by an end user to create a virtual machine for that end user. For example, end user A 551 may designate an administrative assistant to request templates for the end user 551. Another role is that of an end user, such as end user A 551. In this exemplary embodiment, an end user can create a virtual machine, extend the lease of a machine, and request the early expiration of a machine that the end user finishes with before the schedule expiry date, to release resources for another user.

The exemplary provisioning system uses templates to define the virtual machines that an end user may create. A template is the definition of a virtual machine or allocation of a physical resource, such as a LUN or type of network connection. for virtual resources, the template specifies a storages space, computer memory allocation, and required software. The template also specifies a lease duration. Some applications of virtual machines require a short duration, for example, for running a software test. By having templates that define short-term, disposable virtual machines, these machines can be created and destroyed within a patch cycle, reducing the cost of maintenance for the machine. Other templates may have longer durations or may define a permanent virtual machine. In this way, an end user chooses to create a specific type of machine. Typically, but not necessarily, the end user cannot override the allocation of resources in the template.

By limiting the number of templates that are available to a group or enterprise, the virtual machines can more easily be controlled. For example, a group administrator can more readily manage the resources allocated to the group by having specific, defined templates that used prescribed resources. Similarly, security breaches, such as a virus, may be contained by limiting the range of templates available and disposing of machines of a specific type of template that may be susceptible to an assault from a virus.

One of ordinary skill in the art would appreciate that a system could allow an unlimited number of templates or allow a requestor to set the parameters for the machine for each virtual machine request. This type of system would not benefit from the control that is provided by having specific, limited templates. Additionally, the system may allow the user to point to a specific group of physical machines and create a set of virtual machines that mirror the physical machines. In this case, the template process would be skipped and the characteristics of the actual machines would be bulk imported by the system to create the virtual machines.

A role 630 provides for a group administrator. The group administrator can add end users to a group, establish templates for the group, approve the use of a specific template request, turn machines on, off, or dispose of the machines, and extend leases, such as for group 520. For example, a specific template may require administrator approval. Approval may be based on the overall availability of resources in the group or projected upcoming need. Similarly, the administrator may have to approve the extension of a lease, given the status of the available resources.

A role 640 provides for an enterprise administrator, such as for enterprise 510. The enterprise administrator may do everything a group administrator can do. Enterprise administrators also manage physical hosts, set reservations, create and define groups, and may move virtual machines on physical hosts. Reservations are a combination of CPU, disk space, and memory allocated on a virtual server. Reservations are discussed in greater detail below, in connection with FIG. 7. Additionally, an enterprise administrator may be able to override the parameters in a template to allow an end user to access resources or otherwise configure a machine in a way that available templates would not allow.

Enterprise administrators can also query the status of all machines at any time. In that way, the administrator can quickly understand how resources are being used. The administrator may use this feature to determine the machines that may need a critical security patch. The administrator can also quickly maintain the system by destroying one, some, or all of the virtual machines. This action may be needed to protect other resources on the network, such as from a virus or may be needed to free resources for another application. Also, by being capable of moving virtual machines, the administrator can perform physical maintenance on a machine, such as upgrading its memory, without disrupting the virtual machines.

One of ordinary skill in the art would understand that other roles may be appropriate for an enterprise system and that the exemplary roles and privileges described above can be consolidated or otherwise structured differently.

FIG. 7 depicts reservations for virtual machines on physical hosts in accordance with an exemplary embodiment of the present invention. Referring to FIG. 7, reservations allow for the efficient allocation of server resources to groups. For example, group A 750 and group B 760 both share portions of server 710, server 720, and server 730 while group C 770 has portions of two servers, server 710 and server 720. Reservations serve as the basis for defining the types of templates that a group may have, as the reservations define the total available resources. Of course, FIG. 7 shows one possible configuration of reservations. A single group could have all of the available resources of multiple servers while another group could have a portion of a single server. Also, a server may have some resources allocated for operations other than virtualization. Optimal use of these servers can be made by allowing unused resources of the server to be used for virtualization. Also, reservations allow an enterprise to effectively allocate the cost of a physical server based on the group or groups that have reservations on that server. Reservations may also be spliced as to CPU, memory, and storage space. In that way, some resources can be returned to the reservation pool when no longer needed by a virtual machine (such as CPU or memory) even if the virtual machine still requires other resources (such as disk storage).

FIG. 8 depicts the states of a virtual machine in accordance with an exemplary embodiment of the present invention. Referring to FIG. 8, a state 810 is Provisioning. In the Provisioning state 810, a virtual machine is created. A workflow is instantiated that performs the sequential steps needed to place a virtual machine on a server, place the required software on the server, and to turn the machine on. A state 820 is Active. In the Active state 820, the virtual machine operates. The instantiated workflow, that is, the workflow instantiated during the Provisioning state 810, moves into the Active state 820. The workflow may have a variety of sequential flows associated with the workflow to dictate specific actions during the Active state 820. These actions may include maintaining software, such as updating anti virus software, and warning when an expiry date approaches. Also, Active state 820 workflows may differ from one another based on the type of virtual machine that is being controlled. In this way, the provisioning system can be employed to control a variety of types of virtual machines running on a variety of platforms.

Following the Active state 820, the machine moves into an Expired state 830. In the Expired state 830, the machine is turned off. However, in the Expired state 830, the machine is tombstoned, rather than immediately destroyed. During the tombstone period, the machine can be restarted and the lease extended. The tombstone period, for example 7 days, allows a user who may otherwise not have realized that the machine was expiring, to restart the machine if needed. This tombstone period is similar to what is done with a physical machine. It is turned off, but not disconnected. If someone complains before the end of a short period of time that the deactivated resource is needed, then the physical machine can be restarted without a loss of data or other resources.

The next state is a Disposing state 840. In this state, the machine is disposed of and the files cleaned. In a Final state 850, the resources that were associated with the virtual machine are retuned to the pool to be accessed by another user. The workflow instantiated at the beginning of the life cycle, that is, at the Provisioning state 810, takes the machine through to this final state. One of ordinary skill in the art would appreciate that the provisioning system could employ multiple workflows or hard coded routines to control the life cycle of a machine or other virtual resource.

FIG. 9 depicts a lifecycle 900 of a virtual machine in accordance with an exemplary embodiment of the present invention. Referring to FIGS. 4, 8, and 9, at step 910 in the lifecycle, a user 401 selects a machine to create using a self-service web feature to choose a template. Next, at step 920, the machine is provisioned by the provisioning system 420, which identifies the physical resource that will host the virtual machine. Then, at step 930, the provisioning system 420 connects the virtual machine to storage and configures the operating system to conform with the definition in the selected template. In this step of the lifecycle, the provisioning system 420 interacts with an agent, such as agent 460, resident on the physical host, to establish the virtual machine. Then, at step 940, the provisioning system 420 monitors the operation of the created machine. Finally, at step 950, after the machine expires, the provisioning system 420 destroys the machine, cleans the files, and reclaims the physical resources on the host. As discussed above, in connection with FIG. 8, step 950 may include an Expired state 830, where the virtual machine is tombstoned before it is disposed.

FIG. 10 depicts the lifecycle of a virtual machine, showing the interaction of a user with the life cycle in accordance with an exemplary embodiment of the present invention. Referring to FIGS. 4, 8, and 10, in step 1005, a user, such as user 401, selects a template to create a virtual machine. The provisioning system 420 would cause web pages to be rendered that provide the user 401 with options, including the templates that are available to that user. The user 401 would then select a template corresponding to the machine to be created. At step 1010, if required, an administrator approves the request.

At step 1015, the provisioning system 420 instantiates a provisioning workflow to create the requested machine. The machine enters the Provisioning state 810. The workflow instructs an agent, such as agent 460, to create the machine as defined in the template. For an embodiment that employs agents that poll the provisioning system 420, the agent gets the instruction to create the machine the next time the agent polls the provisioning system 420. At step 1020, the workflow chooses a name and callback for the machine. At step 1025, the workflow then notifies the user of the name of the machine and the expiry information for the machine.

At step 1030, the created machine is active and the end user uses the machine. The workflow changes to the Active state 820. At step 1035, the Active workflow notifies the user when the expiration date is near and that the machine will be tombstoned. If the user does not extend the lease, the machine enters the Expired state 830 for the tombstone period, at step 1040. Alternatively, the lease could be extended and the Active state 820 continues. The request to extend the lease may need approval from the group administrator. The lease could still be extended during the Expired state 830.

After expiration, at step 1045, the machine enters the Disposing state 840 and is destroyed. This destruction includes removing all of the files associated with the machine. At step 1050, the machine enters the Final state 850 and its resources are returned to the group pool for access by other users. Alternatively, a virtual machine could be powered off at step 1045, yet not destroyed or cleaned. In that way, some resources associated with the machine can be returned to the group reservation pool at step 1050 (except for the disk storage space that contains the files for the virtual machine) and the machine can lay dormant until needed again.

FIG. 11 depicts an example of a workflow 1100 in accordance with an exemplary embodiment of the present invention. A key feature of an exemplary embodiment of the present invention is the use of workflows. Workflows have the advantage of flexibility—processes are not hard coded into the system.

When a request comes in for a virtual machine, the system creates an instance of that type of workflow associated with the handler of the request. An instance of the workflow comes to life at the “Start” step 1110. The workflow remains alive for the duration of the lifetime of the virtual machine. The system disposes of the workflow when the machine is destroyed and the files have been cleaned up. So each virtual machine that exists in the environment actually has an associated workflow instance that exists at any one time, and each one has a separate workflow. This approach allows the system to keep track of the status of all machines. Also, system administrators, such as an enterprise administrator, can change a workflow as the system is running or create a new workflow—any new virtually machines created after the change will follow the new workflow. Graphical tools enable an administrator to convert a simple process flow into a workflow for the system. The administrators can create workflows without knowing how to program. They actually create the flow and describe visually the flow and the business process of creating a machine in the environment. They can add in all the steps required to provision a machine. All of this work can be done without writing computer code. For example, using these graphic tools, an administrator can reflect interactions within an activity or between activities in a workflow, such as interactions 1120 and 1130.

Referring to FIG. 11, a workflow begins at “Start” 1110. The next action of the workflow responds to a request. The request may need approval, as seen in the next action of the workflow. The machine is then initialized, active, tombstoned, then finalized. The workflow depicts interactions between activities, such as reflected in interaction 1130, where a tombstoned virtual machine can be reactivated when its lease is extended. This workflow goes through the complete life cycle of the machine. The states may trigger additional workflows, such as a workflow that emails the user when the expiry date approaches. In this exemplary embodiment, the workflow is an XML document stored in the SQL server database.

FIGS. 12a-m depict illustrative computer screens from a graphical user interface in accordance with an exemplary embodiment of the present invention. The individual screens provide exemplary functionality that a user could access, including an end user or an administrator.

Referring to FIG. 12a , a screen 1200 provides an initial screen that may be seen by an end user of virtual machines when they request a machine be created. The user can choose the type of machine they would like to create from the “Virtual Machines” menus. The left side of the screen allows the user to “Request New Machine.” In response to that request, the screen presents those templates available to the user. In exemplary screen 1200, the user is a member of a single group (“Research and Development Virtual Lab”). A user that is a member of multiple groups would be presented templates for each group for which the user belongs. A template type with the padlock next to it, “Omni 3.2 Server 1 GB/10 GB” as seen in screen 1200, requires approval from an group administrator.

Referring to FIG. 12b , a screen 1300 shows the user the current machines leased to that user. The screen includes the status of the machine and its expiry date.

Referring to FIG. 12c , a screen 1400 depicts an initial screen presented to a user for creating a virtual machine where that user is a member of multiple groups (in this illustration, “NY Research and Development Virtual Lab,” “DBE Virtual Lab,” “DTACC Virtual Lab,” and “Research and Development Virtual Lab”). As can be seen in the illustrative screen 1400, the user has access to multiple templates in multiple groups. Some of these templates require administrator approval to create.

Referring to FIG. 12d , a screen 1500 presents the user with the parameters of a requested virtual machine, so the user can confirm that the requested machine has the necessary parameters. In this case, the user has extended privileges, perhaps by also being a group administrator, such that the user can enter “additional custom properties” for the requested machines. Typically, a provisioning system would limit the ability of users to add custom properties so as to better manage available resources. Of course, in some embodiments of the present invention, end users may have the flexibility to add custom properties as part of the creation process.

Referring to FIG. 12e , a screen 1600 provides an administrator with a summary report of the status, expiry date, owner, group, and host of virtual machines within a group. This status provides a dynamic picture of the resources being managed. The arrow next to the “Machine Name” for individual machines indicates that a drop-down menu exists that allows the administrator to manage the machine.

Referring to FIG. 12f , a screen 1700 illustrates actions that a user may take to manage machines leased to that user. Each machine has an associated drop-down menu (indicated by the arrow next to the “Machine Name”). This menu allows the user to turn off, reprovision, or dispose of the machine; connect to the machine; set an expiry reminder; or change the expiry date.

Referring to FIG. 12g , a screen 1800 illustrates a screen shown to a group administrator when the administrator must approve a request to create a virtual machine. A system may always require this approval, never require approval, or require selective approval for machines that may tax the resources available to a group (or for another reason).

Referring to FIG. 12h , a screen 1900 allows the administrator to view and manage the templates in the administrator's group or groups. If applicable, the specific group that uses the template would be identified under the “Group” heading. In this illustration, the administrator administers to multiple groups.

Referring to FIG. 12i , a screen 2000 allows an enterprise administrator to manage and view resource groups. This listing would include the “Group Name” and the name of the “Administrator” for that group under the appropriate headings. As can be seen in the menu to the left of screen 2000, the enterprise administrator can “Create Group,” that is, can create a new group. The arrow next to the “Group Name” for individual groups indicates that a drop-down menu exists that allows the enterprise administrator to manage the group.

Referring to FIGS. 12j and 12k , a screen 2100 allows the administrator to see a list of physical host servers. The arrow next to the “Host Name” for individual hosts indicates that a drop-down menu exists that allows the enterprise administrator to manage the host. A screen 2200 shows the options available to the administrator in managing the host, including adding a new reservation to the host, thus allocating host resources to a group.

Referring to FIG. 12l , a screen 2300 allows an administrator to manage and view a resource group allocated to one or more physical hosts. This screen 2300 provides the administrator with the quota of resource allocated to each host. This listing would include the specific “Host” name designated by the enterprise.

Referring to FIG. 12m , a screen 2400 allows an administrator to create or edit a template for a machine that can be created by group members. The details of the machine may include the specific network drive path for the virtual hard drive (VHD), such as “\\omni32test\VHD\VM.” The template provides the configuration for the machine and its lifespan. Custom properties includes the “BuildType,” or the type of operating system for the machine. Custom properties also include the administrator's name and email address.

The discussion above focuses on virtual machines. One of ordinary skill in the art would appreciate that the provisioning system could be used to automate the management of physical computers, such as servers. The same web portal and workflow model could be employed to allow administrators to status and control machines, such as turning off machines that are not sued over the weekend to conserve energy. Additionally, other virtual resources, such as virtual storage and virtual networks could be created and managed using the present invention.

One of ordinary skill in the art would appreciate that the present invention provides systems and methods for managing virtual and real machines. A provisioning system allows a user to create and manage machines through a “self-service” approach. The provisioning system interacts with one or more agents that manage the lifecycle of a machine. The system may provide templates that enable a user to readily create a virtual machine. The system may also include interfaces for administrators to manage virtual and real machine resources. 

What is claimed:
 1. A system for managing virtual computer resources, comprising: a database for storing resource status, user policies, and a plurality of templates that define virtual machines a user may create, wherein each of the plurality of templates specify one or more of the following: storages space, computer memory allocation, and required software, for the respective virtual machine; and a processor programmed to: receive, from a user, a request for a virtual machine; determine, from the user policies, one or more of the plurality of templates the user has access rights to; provide, based on the user policies, one or more of the plurality of templates to the user; receive a selected template from the one or more of the plurality of templates; enable, based on the user policies, the user to override parameters in the selected template to enable the user to adjust resources in a way that available templates would not allow; receive instructions to implement the request based on the selected template; and provision a virtual machine according to the selected template.
 2. The system of claim 1, wherein an allocation of resources for each of the plurality of templates cannot be overridden by the user unless allowed in the user policies.
 3. The system of claim 1, wherein the processor is further programmed to: determine a current status of the resources; and wherein providing one or more of the plurality of templates the user is further based on the current status of resources.
 4. The system of claim 1, wherein the user policies define which template a particular user or group of users have access to.
 5. The system of claim 1 wherein dynamically providing a status of the virtual machine comprises providing the user with a current status of storages space, computer memory allocation, software, and lease duration for the virtual machine.
 6. The system of claim 1, wherein overriding the parameters further comprises enabling, based on the user policies, the user to configure the provisioned virtual machine in a way that available templates would not allow.
 7. The system of claim 1, wherein the processor is further programmed to generate a lifecycle workflow of the virtual machine based on the selected template.
 8. A method comprising: receiving, from a user, a request for a virtual machine; providing, based on user policies, one or more templates the user has access rights to; receiving a selected template from the one or more of the plurality of templates wherein the selected template specifies one or more of the following: storages space, computer memory allocation, and required software for the respective virtual machine; enabling, based on the user policies, the user to override parameters in the selected template to enable the user to adjust resources in a way that available templates would not allow; provisioning a virtual machine according to the selected template; and providing a status of the virtual machine.
 9. The method of claim 8, wherein an allocation of resources for each of the plurality of templates cannot be overridden by the user unless allowed in the user policies.
 10. The method of claim 8, further comprising: determining a current status of the resources; and wherein providing one or more of the plurality of templates the user is further based on the current status of resources.
 11. The method of claim 8, wherein the user policies define which template a particular user or group of users have access to.
 12. The method of claim 8 wherein providing a status of the virtual machine comprises providing the user with a current status of storages space, computer memory allocation, software, and lease duration for the virtual machine.
 13. The method of claim 8, wherein overriding the parameters further comprises enabling the user to configure the provisioned virtual machine in a way that available templates would not allow.
 14. The system of claim 8, further comprising generating a lifecycle workflow of the virtual machine based on the selected template.
 15. One or more non-transitory computer-readable storage media comprising computer-executable instructions that, when executed by one or more processors, cause the one or more processors to: receiving, from a user, a request for a virtual machine; provide, based on user policies, one or more templates the user has access rights to, wherein each of the one or more templates specify one or more of the following: storages space, computer memory allocation, and required software for the respective virtual machine; receive a selected template from the one or more of the plurality of templates; enable, based on the user policies, the user to override parameters in the selected template to enable the user to adjust resources in a way that available templates would not allow; provision a virtual machine according to the selected template; and provide a status of the virtual machine.
 16. The one or more non-transitory computer-readable storage media of claim 15, wherein an allocation of resources for each of the plurality of templates cannot be overridden by the user unless allowed in the user policies.
 17. The one or more non-transitory computer-readable storage media of claim 15, wherein the computer-executable instructions further cause the one or more processors to: determine a current status of the resources; and wherein providing one or more of the plurality of templates the user is further based on the current status of resources.
 18. The one or more non-transitory computer-readable storage media of claim 8, wherein the user policies define which template a particular user or group of users have access to.
 19. The one or more non-transitory computer-readable storage media of claim 8 wherein providing a status of the virtual machine comprises providing the user with a current status of storages space, computer memory allocation, software, and lease duration for the virtual machine.
 20. The one or more non-transitory computer-readable storage media of claim 8, wherein wherein overriding the parameters further comprises enabling the user to configure the provisioned virtual machine in a way that available templates would not allow. 